using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
using System.Data.OleDb;
using SMS.Common;
using SMS.Common.Controls;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        void numTextBox1_NumTextBoxKeyPressed(object sender, KeyPressEventArgs e)
        {
        }

        private void button1_Click(object sender, EventArgs e)
        {
            OleDbConnection conn = new OleDbConnection(txtDbConnectionString.Text);
            conn.Open();
            conn.Close();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            result.Text = "";
            Regex reg = new Regex(text1.Text.Trim());
            if(reg.IsMatch(text2.Text.Trim()))
            {
                result.Text = "True";
            }
            else
            {
                result.Text = "False";
            }
        }

        private void button4_Click(object sender, EventArgs e)
        {
            MessageBox.Show("?");
        }


    }
}